//
//  LiaoyangCell.m
//  QinrenManagers
//
//  Created by easaa on 15/8/3.
//  Copyright (c) 2015年 easaa. All rights reserved.
//

#import "LiaoyangCell.h"

@implementation LiaoyangCell

- (void)awakeFromNib {
    // Initialization code
}


- (void)fillCellWithModel:(BookingModel *)model {
    
    self.type.text = @"疗养预约";
    model.bespeak_time =[model.bespeak_time stringByReplacingOccurrencesOfString:@"+" withString:@" "];
    self.bespeak_time.text = [model.bespeak_time isEqualToString:@""] ? @"暂无信息" : model.bespeak_time;
    
    self.order_no.text = [model.order_no isEqualToString:@""] ? @"暂无信息" : model.order_no;
    
    self.customer_truename.text = [model.customer_truename isEqualToString:@""] ? @"暂无信息" : model.customer_truename;
    
    self.card_id.text = [model.card_id isEqualToString:@""] ? @"暂无信息" : model.card_id;
    
    self.resttype_name.text = [model.resttype_name isEqualToString:@""] ? @"暂无信息" : model.resttype_name;
    
    if ([model.status isEqualToString:@"0"]) {
        self.status.text = @"审核中";
    } else if ([model.status isEqualToString:@"1"]) {
        self.status.text = @"审核通过";
    } else if ([model.status isEqualToString:@"2"]) {
        self.status.text = @"审核不能通过";
    } else if ([model.status isEqualToString:@"3"]) {
        self.status.text = @"取消";
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
